<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<jsp:include page="/WEB-INF/views/commons/center_top.jsp"/>
<script type="text/javascript" src="/static/module/commons/public.js"></script>
<div class="contBox clear">
	<div class="col-sm-6 no-padding">
		<div class="widget-box">
			<div class="widget-header header-color-blue">
				<span>地区管理</span>
				<div class="widget-toolbar no-border">
					<div class="btn-group">
						<button class="btn btn-info btn-sm btn-add"><i class='icon-plus-sign bigger-150'></i>添加</button>
						<button class="btn btn-info btn-sm btn-update"><i class='icon-pencil bigger-150'></i>修改</button>
						<button class="btn btn-info btn-sm btn-delete"><i class='icon-trash bigger-150'></i>刪除</button>
					</div>

				</div>
			</div>
			<div class="widget-body overflow">
				<table id="my_tree_grid"></table>
			</div>
		</div>
	</div>
		
	<div id="openinfo" class="col-sm-6 no-padding-right" style="display: none" >
	 	<div class="widget-box">
		 	<div class="widget-header header-color-blue">
			 	<span>地区编辑</span>
				<div class="widget-toolbar no-border">
					<div class="btn-group">
						<button class="btn btn-info btn-sm ifshow" onclick="doSave()"  id="roleSave">
							<i class="icon-save bigger-150"></i>
							保存
						</button>
					</div>
				</div>
			</div>
		 	<div class="widget-body">
		 	<div class="widget-main padding-8">
			<div  class="tree-unselectable clear">
			 	<form name="myform" id="myform" class="FormGrid"   >
			 	<input type="hidden" name="id" id="form_id" />
				<input type="hidden" id="form_parentId2" />
				<input type="hidden" name="parentId" id="form_parentId" />
					<div class="form-group col-sm-12">
						<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 地区名称 </label>
						<div class="col-sm-10">
							<input name="name" id="form_name" class="col-xs-10 col-sm-9 required changeRead" type="text" >
						</div>
					</div>
					<div class="form-group col-sm-12">
						<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 地区编码 </label>
						<div class="col-sm-10">
							<input name="code" id="form_code" class="col-xs-10 col-sm-9 required changeRead" type="text" >
						</div>
					</div>
					<div class="form-group col-sm-12">
						<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 上级区域 </label>
						<div class="col-sm-10">
							<div class="input-group col-xs-10 col-sm-9 no-padding"  >
								<input id="areaName" name="" readonly="readonly" type="text" value="" data-msg-required="" class="form-control " style="">
								<span class="input-group-btn"  onclick="showMenu(); return false;">
									<a id="subjectButton" href="javascript:" class="btn btn-primary btn-sm dropdown-toggle"> <span class="caret"></span></a>
								</span>
								<div id="menuContent" class="menuContent " style="display:none; position: absolute; z-index:999">
									<ul id="treeDemo" class="ztree" style="margin-top:0; "></ul>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>
			</div>
			</div>
		</div>
	</div>
</div>	

<script type="text/javascript" src="/static/module/system/area/index.js"></script>
<jsp:include page="/WEB-INF/views/commons/center_bottom.jsp"/>